package com.ktjy.crm.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.sql.Timestamp;

@TableName("sys_user")
public class User {
  @TableId(type = IdType.AUTO)
  private long usrId;
  @TableField("usr_name")
  private String usrName;
  private String usrPassword;
  private long usrRoleId;
  private long usrFlag;
  @Version
  private Integer version;
  private Boolean deleted;
  @TableField(fill = FieldFill.INSERT)
  private java.sql.Timestamp createTime;
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private java.sql.Timestamp updateTime;
  @TableField(exist= false)
  private String roleName;
  @TableField(exist= false)
  private Role role;

  public User(String czkt, String number, int i, Object o) {
  }

  public long getUsrId() {
    return usrId;
  }

  public void setUsrId(long usrId) {
    this.usrId = usrId;
  }

  public String getUsrName() {
    return usrName;
  }

  public void setUsrName(String usrName) {
    this.usrName = usrName;
  }

  public String getUsrPassword() {
    return usrPassword;
  }

  public void setUsrPassword(String usrPassword) {
    this.usrPassword = usrPassword;
  }

  public long getUsrRoleId() {
    return usrRoleId;
  }

  public void setUsrRoleId(long usrRoleId) {
    this.usrRoleId = usrRoleId;
  }

  public long getUsrFlag() {
    return usrFlag;
  }

  public void setUsrFlag(long usrFlag) {
    this.usrFlag = usrFlag;
  }

  public Integer getVersion() {
    return version;
  }

  public void setVersion(Integer version) {
    this.version = version;
  }

  public Boolean getDeleted() {
    return deleted;
  }

  public void setDeleted(Boolean deleted) {
    this.deleted = deleted;
  }

  public Timestamp getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Timestamp createTime) {
    this.createTime = createTime;
  }

  public Timestamp getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Timestamp updateTime) {
    this.updateTime = updateTime;
  }

  public String getRoleName() {
    return roleName;
  }

  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }

  public Role getRole() {
    return role;
  }

  public void setRole(Role role) {
    this.role = role;
  }
}
